package com.dinner.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dinner
 * @since 2022-02-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DiOrder对象", description="")
public class DiOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "订单金额")
    private float orderPrice;

    @ApiModelProperty(value = "订单状态 0 未支付 1 已支付")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单所在桌号")
    private Integer seatId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单创建时间")
    private Date creatTime;

    @ApiModelProperty(value = "订单修改时间")
    private Date updTime;

    @TableField(exist = false)
    private  DiUser diUser;


}
